package Example14;
abstract class Animal {
    abstract void shout();
}
class Cat extends Animal{
    void shout(){
        System.out.println("啊呜~啊呜~啊呜");
    }
}
class Dog extends Animal{
    void shout(){
        System.out.println("咯咯咯......");
    }
}
public class Exa14 {
    public static void main (String[] args){
        Animal cat = new Cat();
        Animal dog = new Cat();
        cat.shout();
        dog.shout();
    }
}
